package com.cal.utms.action.payment;

import com.cal.utms.dto.payment.PaymentReceiptRequest;
import com.cal.utms.model.payment.PaymentModel;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class PaymentReceiptReqAction extends ActionSupport implements ModelDriven<PaymentReceiptRequest> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private PaymentReceiptRequest paymentRequest = new PaymentReceiptRequest();
	PaymentModel model = new PaymentModel();
	private int fund_id;
	private String affective_date;

	public String getPaymetRequest() {
		paymentRequest.setPaymentRequests(model.getPaymentRequest(fund_id, affective_date));
		return ActionSupport.SUCCESS;
	}

	public String getReceiptRequest() {
		paymentRequest.setPaymentRequests(model.getReceiptRequest(fund_id, affective_date));
		return ActionSupport.SUCCESS;
	}

	public int getFund_id() {
		return fund_id;
	}

	public void setFund_id(int fund_id) {
		this.fund_id = fund_id;
	}

	public String getAffective_date() {
		return affective_date;
	}

	public void setAffective_date(String affective_date) {
		this.affective_date = affective_date;
	}

	public PaymentReceiptRequest getPaymentRequest() {
		return paymentRequest;
	}

	public void setPaymentRequest(PaymentReceiptRequest paymentRequest) {
		this.paymentRequest = paymentRequest;
	}

	@Override
	public PaymentReceiptRequest getModel() {
		return paymentRequest;
	}

}
